package com.luo.demo.sharding.jdbc.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.luo.demo.sharding.jdbc.model.entity.Product;
import com.luo.demo.sharding.jdbc.model.param.ProductListParam;
import com.luo.demo.sharding.jdbc.model.param.ProductPageParam;
import com.luo.demo.sharding.jdbc.model.result.CommonResult;

/**
 * <p>
 * 商品信息 服务类
 * </p>
 *
 * @author luohq
 * @since 2021-10-22
 */
public interface IProductService extends IService<Product> {

    /**
     * 查询商品分页列表
     *
     * @param productPageParam
     * @return
     */
    CommonResult<Product> findPage(ProductPageParam productPageParam);

    /**
     * 查询商品列表
     *
     * @param productListParam
     * @return
     */
    CommonResult<Product> findList(ProductListParam productListParam);
}
